﻿using AMapPlugin.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AMapPlugin
{
    public interface IAmapPlugin
    {
        /// <summary>
        /// 获取ip信息
        /// </summary>
        /// <param name="ip"></param>
        /// <returns></returns>
        Task<IpInfo> GetIpInfo(string ip);

        /// <summary>
        /// 获取天气信息
        /// </summary>
        /// <param name="code">城市编码</param>
        /// <returns></returns>
        Task<WeatherInfo> GetWeather(string code);
    }
}
